//Jen Anderson
//CS 362
//Assignment 3
//cardtest1.c

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "dominion.h"

void testRemodel()
{
	//Initialize game	
        int k[10] = {adventurer, council_room, feast, gardens, mine, remodel, smithy, village, baron, great_hall};
        struct gameState *game = newGame();
        initializeGame(3, k, 10, game);
        struct gameState *testGameState = malloc(sizeof(struct gameState));
        memcpy(testGameState, game, sizeof(struct gameState));

        int coin = 0;
        cardEffect(remodel, 0, 0, 0, testGameState, 0, &coin);

	//Rules:
	//	choose a card to discard
	//      choose a card to gain
	int playerHandCount = testGameState -> handCount[testGameState->whoseTurn];
	printf("Player hand count before village card drawn: %d.\n", playerHandCount); 
        cardEffect(village, 0, 0, 0, testGameState, 0, &coin);
	int newPlayerHandCount = testGameState -> handCount[testGameState->whoseTurn];
        printf("Player hand count after village card drawn: %d.\n", newPlayerHandCount);
	             
}



int main(int argc, char *argv[]){
    testRemodel();
    return 0;
}
